package com.example.lifecycle.app;

import android.app.Application;

import com.example.lifecycle.di.AppComponent;
import com.example.lifecycle.di.DaggerAppComponent;
import com.example.lifecycle.di.app.AppConfigModule;


public class MyApplication extends Application {

    private AppComponent mAppComponent;

    @Override
    public void onCreate() {
        super.onCreate();
        LifecycleActivityListener.init(this);
        this.mAppComponent = DaggerAppComponent.builder().appConfigModule(new AppConfigModule(this)).build();
    }

    public AppComponent getAppComponent() {
        return mAppComponent;
    }
}
